﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 返回标识
    /// </summary>
    public class TokenForJD
    {
        /// <summary>
        /// 返回标识
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 返回描述
        /// </summary>
        public string resultMessage { get; set; }
        /// <summary>
        /// 返回编码
        /// </summary>
        public string resultCode { get; set; }
        public TokenForJDDetails result { get; set; }
    }
    /// <summary>
    /// 用户Token详情
    /// </summary>
    public class TokenForJDDetails
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string uid { get; set; }
        /// <summary>
        /// 用户联系方式
        /// </summary>
        public string refresh_token_expires { get; set; }
        /// <summary>
        /// 当前时间
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// Access_token的过期时间，秒级别,有效期24小时
        /// </summary>
        public int expires_in { get; set; }
        /// <summary>
        /// 未知
        /// </summary>
        public string refresh_token { get; set; }
        /// <summary>
        /// Token码
        /// </summary>
        public string access_token { get; set; }
    }
}
